class CreateSongs < ActiveRecord::Migration[6.1]
  def change
    create_table :songs do |t|
      t.string :name, null: false
      t.boolean :is_shown, null: false, default: false
      t.references :song_tag, null: false, foreign_key: true
      t.string :content_id, null: false
      t.string :uuid, null: false
      t.string :pinyin, null: false
      t.integer :time_duration, null: false
      t.string :language, null: false
      t.string :mv_type, null: false
      t.string :redundant_song_tag_name, null: false
      t.string :redundant_singer_name, null: false
      t.string :redundant_singer_tag_name, null: false
      t.string :redundant_singer_pinyin, null: false
      t.integer :view_amount, null: false, default:0
      t.boolean :is_recommended, null: false, default: false

      t.timestamps
    end
  end
end
